package com.pinecone.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.pinecone.dao.LiveRoomViewCodeDao;
import com.pinecone.entity.LiveRoomViewCodeEntity;
import com.pinecone.service.LiveRoomViewCodeService;



@Service("liveRoomViewCodeService")
public class LiveRoomViewCodeServiceImpl implements LiveRoomViewCodeService {
	@Autowired
	private LiveRoomViewCodeDao liveRoomViewCodeDao;
	
	@Override
	public LiveRoomViewCodeEntity queryObject(Integer liveRoomCodeId){
		return liveRoomViewCodeDao.queryObject(liveRoomCodeId);
	}

    @Override
    public LiveRoomViewCodeEntity queryByRoomId(String liveRoomId) {
        return liveRoomViewCodeDao.queryByRoomId(liveRoomId);
    }

    @Override
	public List<LiveRoomViewCodeEntity> queryList(Map<String, Object> map){
		return liveRoomViewCodeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return liveRoomViewCodeDao.queryTotal(map);
	}
	
	@Override
	public void save(LiveRoomViewCodeEntity liveRoomViewCode){
		liveRoomViewCodeDao.save(liveRoomViewCode);
	}
	
	@Override
	public void update(LiveRoomViewCodeEntity liveRoomViewCode){
		liveRoomViewCodeDao.update(liveRoomViewCode);
	}
	
	@Override
	public void delete(Integer liveRoomCodeId){
		liveRoomViewCodeDao.delete(liveRoomCodeId);
	}
	
	@Override
	public void deleteBatch(Integer[] liveRoomCodeIds){
		liveRoomViewCodeDao.deleteBatch(liveRoomCodeIds);
	}
	
}
